<extend name="Public/base" />

<!-- 子導航 -->
<block name="sidebar">
    <include file="sidemenu" />
</block>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
   
        <div class="main-title">
        <h2>新增會員</h2>
    </div>
   
    <!-- 標簽頁導航 -->
<!--    <div class="tab-wrap">
       
        <div class="tab-content">-->
            <!-- 表單 -->
<!--            <form id="form" action="{:U('update')}" method="post" class="form-horizontal">-->
                <!-- 基礎文檔模型 -->


                    <!-- 表單 -->
                    <form id="form" name="adduser" action="{:U('Admin/User/add')}" method="post" class="form-horizontal">
                        <!-- 基礎文檔模型 -->
                        <div id="tab1" class="tab-pane in tab1">
                            <div class="form-item cf">
                                <label class="item-label">用戶名<span class="check-tips"></span></label>
                                <div class="controls">
                                    <input class="text input-large" name="username" value="" type="text">                                    </div>
                            </div><div class="form-item cf">
                                <label class="item-label">會員卡號<span class="check-tips"></span></label>
                                <div class="controls">
                                    <input class="text input-large" id="account" name="account" value="" type="text">
                                    <span id="account-span" style="display: none; color: red; margin-left: 10px;">請輸入會員卡號</span>        
                                </div>
                            </div>
                            <div class="form-item cf">
                                <label class="item-label">密碼<span class="check-tips"></span></label>
                                <div class="controls">
                                    <input class="text input-large" name="password" value="" type="password">   
                                </div>
                            </div>
                            <div class="form-item cf">
                                <label class="item-label">再次輸入密碼<span class="check-tips"></span></label>
                                <div class="controls">
                                    <input class="text input-large" name="repassword" value="" type="password">                                    </div>
                            </div>
                            <div class="form-item cf">
                                <label class="item-label">電話<span class="check-tips"></span></label>
                                <div class="controls">
                                    <input class="text input-large" name="phone" value="" type="text">                                    </div>
                            </div><div class="form-item cf">
                                <label class="item-label">郵箱<span class="check-tips"></span></label>
                                <div class="controls">
                                    <input class="text input-large" name="email" value="" type="text">                                    </div>
                            </div>
                            <div class="form-item cf">

                                <label class="item-label">地址<span class="check-tips"></span></label>
                                <div class="controls">
                                    <input class="text input-large" name="address" value="" type="text">                                    </div>
                            </div>                    
                        </div>
                        <input type="hidden" name="status" value="2"/>

                        <div class="form-item">
                            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">確 定</button>
                            <button class="btn btn-return" onclick="javascript:history.back(-1); return false;">返 回</button>
                        </div>
                    </form>
</block>

<block name="script">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    <script>
        $("#account").blur(function(){
            if(this.value==""){
                $("#account-span").show();    
            }else{
                $("#account-span").hide();   
            }
        });
    </script>
</block>